package com.shycloud.mido.member.service.impl;

import java.util.List;

import org.apache.commons.collections4.CollectionUtils;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.shycloud.mido.member.api.entity.MemberActivateEntity;
import com.shycloud.mido.member.mapper.MemberActivateMapper;
import com.shycloud.mido.member.service.MemberActivateService;
@Service
public class MemberActivateServiceImpl extends ServiceImpl<MemberActivateMapper, MemberActivateEntity> implements MemberActivateService {

	/**
	 * true 存在过体验1次
	 */
	@Override
	public boolean existBusiType3ByMemberId(String memberId) {
		List<MemberActivateEntity> result = baseMapper.getBusiType3ByMemberId(memberId);
		if (CollectionUtils.isNotEmpty(result) && result.size() == 1) {
			return true;
		}
		return false;
	}

}
